morph

USAGE: morph inimg outimg [-i ITERATIONS] [-o OPERATION]
                          [-s SIZE] [-I] [-L]

morph performs morphological processing on binary image

ARGUMENTS:
    inimg: input image filename (TIF)
   outimg: output image filename (TIF)

OPTIONS:
  -i ITERATIONS: number of iterations to perform.
                (default = 1)
   -o OPERATION: for dilation(1), erosion(2), closing(3),
                 or opening(4) (default = 1).
                 closing operation is alternating dilation-erosion;
                 opening operation is alternating erosion-dilation;
                 for opening or closing, the number of iterations is
                 the sum of the comprising dilation and erosion iterations.
        -s SIZE: size of structuring element -- must be odd and >=3
                 (default = 3)
             -I: invert input image before processing
             -L: print Software License for this module
 
 

Example:

morph brknblobs.tif brknblobsM1.tif -i 4 -o 3 -I

brknblobs.tif:

brknblobsM1.tif:

Copyright (C) 1999 MLMSoftware Group, LLC.